<?php

namespace Database\Seeders;

use App\Models\Admin;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class AdminSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //

        Admin::query()->updateOrCreate([
            'name' => 'admin',
            'password' => Hash::make('Admin@2022'),
            'status' => true,
        ]);
    }
}
